package amqp.tutorials.all.direct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class DirectReceiver {

    @RabbitListener(queues = "directQueue1")
    public void s1(String msg) {
        log.info("我是queue1队列-error: " + msg);
    }

    @RabbitListener(queues = "directQueue2")
    public void s2(String msg) {
        log.info("我是queue2队列info/warning: " + msg);
    }

}
